<include file='Common:header'/>

<!-- Content Wrapper. Contains page content -->
<div class="content-wrapper">
    <!-- Content Header (Page header) -->
    <section class="content-header">
        <h1>
            系统设置
            <small>System Config</small>
        </h1>
        <ol class="breadcrumb">
            <li><a href="#"><i class="fa fa-dashboard"></i> Home</a></li>
            <li><a href="#">UI</a></li>
            <li class="active">General</li>
        </ol>
    </section>

    <!-- Main content -->
    <section class="content">

        <!-- START CUSTOM TABS -->
        <div class="row">
            <div class="col-xs-12">
                <!-- Custom Tabs -->
                <div class="nav-tabs-custom">

                    <ul class="nav nav-tabs">

                        <volist name="configGroup" id="d">
                            <li>
                            <a href="{:U('index')}#tab_{$d.cgname}" rel="tab_{$d.cgname}">{$d.cgtitle}</a>
                            </li>
                        </volist>
                        <li class="active"><a href="#tab_addoncfg" data-toggle="tab" rel="tab_addoncfg">添加配置</a></li>

                        <li class="pull-right"><a href="#" class="text-muted"><i class="fa fa-gear"></i></a></li>
                    </ul>

                    <div class="tab-content">

                        <div class="tab-pane active" id="tab_addoncfg">
                            <div style="width:100%;">
                                <div class="box">
                                    <div class="box-header with-border">
                                        <h3 class="box-title">添加配置</h3>
                                    </div><!-- /.box-header -->
                                    <div class="box-body">
                                        <div class="col-md-6">
                                            <!-- general form elements -->
                                            <div class="box box-primary">
                                                <div class="box-header with-border">
                                                    <h3 class="box-title">配置项：</h3>
                                                </div><!-- /.box-header -->
                                                <!-- form start -->
                                                <form role="form" method="post">
                                                    <div class="box-body">
                                                        <div class="form-group">
                                                            <label for="title">标题（中文）</label>
                                                            <input type="text" placeholder="" id="title" name="title" class="form-control">
                                                        </div>
                                                        <div class="form-group">
                                                            <label for="name">变量名（英文）</label>
                                                            <input type="text" placeholder="" id="name" name="name" class="form-control">
                                                        </div>
                                                        <div class="form-group">
                                                            <label for="message">提示信息</label>
                                                            <textarea placeholder="" rows="3" id="message" name="message" class="form-control"></textarea>
                                                        </div>
                                                        <div class="form-group">
                                                            <label for="cgid">配置组</label>
                                                            <select name="cgid" id="cgid" class="form-control">
                                                                <volist name="configGroup" id="g">
                                                                    <option value="{$g.cgid}">{$g.cgtitle}</option>
                                                                </volist>
                                                            </select>
                                                        </div>
                                                        <div class="form-group">
                                                            <label for="name">显示方法</label>
                                                            <div class="radio">
                                                                <label>
                                                                    <input type="radio" id="optionsRadios1" name="show_type" value="text" checked="">
                                                                    text
                                                                </label>
                                                            </div>
                                                            <div class="radio">
                                                                <label>
                                                                    <input type="radio" id="optionsRadios2" name="show_type" value="radio">
                                                                    radio
                                                                </label>
                                                            </div>
                                                            <div class="radio">
                                                                <label>
                                                                    <input type="radio" id="optionsRadios3" name="show_type" value="textarea">
                                                                    textarea
                                                                </label>
                                                            </div>
                                                            <div class="radio">
                                                                <label>
                                                                    <input type="radio" id="optionsRadios4" name="show_type" value="select">
                                                                    select
                                                                </label>
                                                            </div>
                                                        </div>
                                                        <div class="form-group">
                                                            <label for="value">配置值</label>
                                                            <input type="text" placeholder="" id="value" name="value" class="form-control">
                                                        </div>
                                                        <div class="form-group">
                                                            <label for="info">参数（对radio与select有效)</label>
                                                            <textarea placeholder="" rows="3" id="info" name="info" class="form-control"></textarea>
                                                            如：1|开启,0|关闭
                                                        </div>
                                                    </div><!-- /.box-body -->

                                                    <div class="box-footer">
                                                        <button class="btn btn-primary" type="submit">添加</button>
                                                    </div>
                                                </form>
                                            </div><!-- /.box -->

                                        </div>
                                    </div><!-- /.box-body -->
                                </div><!-- /.box -->
                            </div>
                        </div><!-- /.tab-pane -->

                    </div><!-- /.tab-content -->

                </div><!-- nav-tabs-custom -->
            </div><!-- /.col -->

        </div> <!-- /.row -->
        <!-- END CUSTOM TABS -->

    </section><!-- /.content -->
</div><!-- /.content-wrapper -->


<include file='Common:footer'/>